var e = require("../../@babel/runtime/helpers/interopRequireDefault").default, t = e(require("../../kta/index")), n = e(require("../../api/api_shareCard")), a = e(require("../../libs/fecha/index.js"));

t.default.Page({
    data: {
        startDate: "",
        endDate: ""
    },
    onLoad: function(e) {
        this.getActInfo();
    },
    getActInfo: function() {
        var e = this;
        n.default.getActInfo().then(function(t) {
            console.log("获取活动时间接口", t);
            var n = t.code, o = t.result;
            t.msg;
            if ("0" === n) {
                var i = a.default.format(new Date(o.actStartTime), "YYYY[年]MM[月]DD[日]"), r = a.default.format(new Date(o.actEndTime), "YYYY[年]MM[月]DD[日]");
                e.setData({
                    startDate: i,
                    endDate: r
                });
            }
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});